-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wip - from 94683 - remove input lock and rely on canceling pending change #94787
wip - from 94683 - remove input lock and rely on canceling pending change #94787
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~39 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~4783 bytes removed 📉 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~17565 bytes added 📈 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
79f9629
into
update/email-verification-form-and-notice
…ate copies and success messages. (#94683) * remove notice under input and update copy * update success notices * add fallback for one of those... * focus input on unlock * init new banner component * add notice icon * move notice out of content frame * style banner to fit and remove bad unused style rule for mobile * add banner to account page * update unlock field button styles * add note to self * remove unused component * unlock and highlight input when change is clicked from modal on the page with that form * ensure dialog closes on route change * adjust button and anchor style to be consistent * allow editing pending email * allow saving pending email change in security form * show correct email with change notice on security input * send success email message from account component * move emailToShow to component state and control with hooks, fixes issue with input jumping to pending value if you type in old email value. * fix duplicate notices and only show email when it changed with that submission * expand explanation text for domains and cancel pending cases * more commenting around emailSettingToShow state * remove test file for removed component * remove input lock and rely on canceling pending change (#94787) * add notice on confirmed email change * remove extra domain info on pending change description, the change is still pending * update copy per design * consolidate success messages * add scroll and focus functionality from help dialog * make the scrollTo smooth * fix resend email for pending email change * fix failing gravatar tests * add cursor pointer to the change button * fix dialog to close on clicking backdrop * allow scroll/focus from external pages * allow scrollTo functionality from /me to work even if /me/account was previously loaded * fix css bracket removed in merge conflict * fix import order * fix layout frame regression * fix issue with wrong email shown in modal, and href overtaking the banner in some circumstances
* remove notice under input and update copy * update success notices * add fallback for one of those... * focus input on unlock * init new banner component * add notice icon * move notice out of content frame * style banner to fit and remove bad unused style rule for mobile * add banner to account page * update unlock field button styles * add note to self * remove unused component * unlock and highlight input when change is clicked from modal on the page with that form * ensure dialog closes on route change * adjust button and anchor style to be consistent * allow editing pending email * allow saving pending email change in security form * show correct email with change notice on security input * send success email message from account component * move emailToShow to component state and control with hooks, fixes issue with input jumping to pending value if you type in old email value. * fix duplicate notices and only show email when it changed with that submission * expand explanation text for domains and cancel pending cases * more commenting around emailSettingToShow state * remove test file for removed component * remove input lock and rely on canceling pending change (#94787) * add notice on confirmed email change * remove extra domain info on pending change description, the change is still pending * update copy per design * consolidate success messages * add scroll and focus functionality from help dialog * make the scrollTo smooth * fix resend email for pending email change * fix failing gravatar tests * add cursor pointer to the change button * fix dialog to close on clicking backdrop * allow scroll/focus from external pages * allow scrollTo functionality from /me to work even if /me/account was previously loaded * fix css bracket removed in merge conflict * fix import order * fix layout frame regression * fix issue with wrong email shown in modal, and href overtaking the banner in some circumstances * add tests for verification banner * update test descriptions * fix warnings from new tests
Related to # #94683
Proposed Changes
simplifies #94683 some as an alternative simple approach (as suggested in item 2 of this comment #94247 (comment)). I am now thinking this is what we will want and plan to merge this into that branch if designers agree.
The noted input explanations have been adapted to fit this as well. The "click here" is what now cancells the pending email change and unlocks the input:
Pending email change (no domains):
Pending email change (with domains):
^^ todo: probably want to edit that blue anchor to the underlined style? or do we let it have a separate style since its not an inline action and redirects to another page?
Email not verified:
General case:
Why are these changes being made?
Testing Instructions
Pre-merge Checklist